home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7647 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.5 sun4m)
  2. MIME-Version: 1.0
  3. Subject: Re: Help with transparent objects
  4. References: <4l13tn$u@ns.ccsn.edu>
  5. Content-Type: text/plain; charset=us-ascii
  6. Content-Transfer-Encoding: 7bit
  7. Path: imada.ou.dk!breese
  8. From: breese@imada.ou.dk (Bjorn Reese)
  9. Message-ID: <1996Apr19.104649.4477@imada.ou.dk>
  10. Sender: news@imada.ou.dk
  11. Nntp-Posting-Host: gounod.imada.ou.dk
  12. Organization: Dept. of Math. & Computer Science, Odense University, Denmark
  13. Date: Fri, 19 Apr 1996 10:46:49 GMT
  14. Newsgroups: comp.sys.amiga.programmer
  15.  
  16. shane baker wrote:
  17. > work)  Using Images hasn't worked for me, and neither has BltBitMap.  Is
  18.  
  19. Use graphics.library/BltMaskBitMapRastPort instead.
  20.  
  21.   BltMaskBitMapRastPort(
  22.     fromRastPort->BitMap, from_xpos, from_ypos,
  23.     toRastPort, to_xpos, to_ypos,
  24.     xsize, ysize, 0xE2, shape);
  25.  
  26. "shape" is a pointer to a memory area where the mask/shape of the
  27. object is, ie. should contain a zero bit for each transparent pixel
  28. and a one bit otherwise. You can get this shape by OR'ing the bitplanes.
  29.  
  30. -- 
  31. Bjorn Reese                      Email: breese@imada.ou.dk
  32. Odense University, Denmark       URL:   http://www.imada.ou.dk/~breese
  33.  
  34. "It's getting late in the game to show any pride or shame" - Marillion
  35.